package cn.redsoft.wechatapi.msg.resp.passivity;

import com.thoughtworks.xstream.annotations.XStreamAlias;

@XStreamAlias("xml")
public class VoiceResponseMsg extends PassivityResponseMsg {

	@XStreamAlias("Voice")
	private Voice voice;

	public VoiceResponseMsg() {
		this.msgType = PassivityResponseMsgType.VOICE;
	}

	public Voice getVoice() {
		return voice;
	}

	public void setVoice(Voice voice) {
		this.voice = voice;
	}

	@Override
	public String toString() {
		return "VoiceResponseMsg [voice=" + voice + ", toUserName="
				+ toUserName + ", fromUserName=" + fromUserName
				+ ", createTime=" + createTime + ", msgType=" + msgType + "]";
	}

	@XStreamAlias("Voice")
	public static class Voice {

		@XStreamAlias("MediaId")
		private String mediaId;

		public Voice() {
		}

		public String getMediaId() {
			return mediaId;
		}

		public void setMediaId(String mediaId) {
			this.mediaId = mediaId;
		}

		@Override
		public String toString() {
			return "Voice [mediaId=" + mediaId + "]";
		}
	}
}
